package com.huang.foundation.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author HuangShen
 * @Description
 * @create 2021-10-14 7:26
 */
@Component
@RefreshScope
@ConfigurationProperties(prefix = "com.huang.aliyun.sts")
@Data
public class AliYunProperties {


    private String regionId;
//    "LTAI5tGFsbsNeiuFJauVmF4F"
    private String accessKeyId;
//    "mmFzN5LqZlLNm67lnqn9XgU1o8J2pu"
    private String accessKeySecret;
//    acs:ram::1940965398097994:role/aliyunstsfullrole
    private String roleArn;
//    有效时长
    private Long durationSeconds;
    private String bucket;
    private String endpoint;

}
